From L A TEX to HTML and back Michel
نویسندگان
چکیده
Both LATEX and HTML are languages that can express the structure of a document, and similarities between these two systems are shown. A detailed study is made of the LaTeX2HTML program, written by Nikos Drakos, that is today the most complete utility for translating LATEX code into HTML, providing a quasi-automatic translation for most elements. A discussion of a few other tools for translating between HTML and LATEX concludes the article. 1 Similarities between LTEX and HTML HTML and LTEX are both generic markup systems, and a comparison between tags for structural elements in both cases is shown in Table 1. In most cases the di erences are trivial, seeming to indicate that, at rst approximation, translating between these two systems should not prove too di cult. The translation programs described in this article use these similarities, but in order to exploit the richness of the LTEX language as compared to HTML (especially HTML2, which has no support for tables or mathematics), an ad hoc approach has to be adopted. To handle correctly LTEX commands that have no equivalent in HTML, such elements can either be transformed into bitmap or PostScript pictures (an approach taken by LaTeX2HTML), or the user can specify how the given element should be handled in the target language.
منابع مشابه
HTML & TEX : Making them sweat
HTML is often criticised for its presentation-oriented conception. But it does contain sufficient structural information for many everyday purposes and this has led to its development into a more stable form. Future platforms for the World Wide Web may support other applications of SGML, and the present climate of popularity of the Web is a suitable opportunity for consolidation of the more sta...
متن کاملManaging TEX Resources with XML Topic Maps
For many years the Polish TEX Users Group newsletter has been published online on the GUST web site. The repository now contains valuable information on TEX, METAFONT, electronic document, computer graphics and related subjects. However, access to the content is very poor: it is available as PS/PDF files with only a simple HTML page facilitating navigation. There is no integration with informat...
متن کاملActive TEX and the DOT Input Syntax
The usual category codes give TEX its familiar backslash and braces input syntax. With Active TEX, all characters are active. This gives the macro programmer complete freedom in defining the input syntax. It also provides a powerful programming environment. The DOT input syntax, like TROFF, uses a period at the start of the line as an escape character. However, its underlying element, attribute...
متن کاملFrom SGML to HTML with help from TEX
At this time there is still no fast and standard way of presenting mathematics in HTML pages. Various ideas have been tested and the W3C has just released a draft math markup proposal. When combined with freely available fonts containing the required mathematical characters, we can see much potential for the future. For now it seems that there is only one common denominator suitable for quickly...
متن کاملTEX to HTML Translation via Tagged DVI
This paper describes dvihtml, a program under development for translating a tagged DVI file into HTML. A common problem when translating TEX into another format is handling unexpected macros. Fortunately, TEX’s macro language is flexible enough to pass markup information to the DVI file in the form of \special’s, fonts and small horizontal or vertical movements. Translating the resulting DVI fi...
متن کامل